home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Megarom
/
Megarom Macintosh CD Software (Quantum Leap)(1992).iso
/
UTILITIES
/
Photoclip FKey ƒ
/
protoclip readme.c
< prev
Wrap
Text File
|
1991-04-20
|
1KB
|
48 lines
/*
Protoclip
by Alex D. Chaffee
(chaffee@reed.bitnet, AOL:AlexCh, CIS:71210,1117)
Copyright © 1991 Alex Chaffee. Permission granted to change and distribute
freely, provided all changes are documented.
This FKEY takes any C source code in the clipboard and converts it
into a list of ANSI prototypes. The prototyping code is based on a
Unix program called mkptypes by Eric R. Smith (ersmith@uwovax.uwo.ca
or @uwovax.bitnet). Since it's in the public domain, protoclip is
freeware.
To use in Think C, either memorize or make a macro for the following
keystrokes:
Cmd-A (select all)
Cmd-C (copy)
Cmd-Shift-8 (protoclip)
Up Arrow (move to the top of the file)
Cmd-V (paste)
This release has been tested with Think C. If you find problems with
MPW, let me know.
One interesting effect is if you're using both Kiss and 4Plus, if you
set a mark (cmd-space) with Kiss, then activate the fkey, then press
cmd-Enter, it will jump to the mark and paste the prototypes. I have
no idea why this works, despite the fact that I wrote Kiss...!
It sometimes gets confused by single quotes inside comments. The
fix is to replace ' with ’.
- Alex
Version History
1.0 3/1/91
1.1 3/9/91 Works with Think C methods and (presumably) C++
1.2 4/20/91 Fixed a cosmetic cursor bug
Cleaned up source code and released it
*/